package com.zhao.springcloud.dao;

import com.zhao.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;

/**
 * @author xiaoZhao
 * @date 2022/11/9
 * @describe
 */
@Mapper
public interface PaymentDao {

    int add(Payment payment);

    //  加上@Param注解，mapper中就可以采用#{}的方式把@Param注解括号内的参数进行引用
    Payment getPaymentById(@Param("id") Long id);
}
